package com.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="tb_assets_class")
public class AssetsClassBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3911934674577021888L;
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "assigned")
	@GeneratedValue(generator = "idGenerator")
	private Integer ac_id;
	@Column(unique=true)
	private Integer ac_coding;
	@Column(unique=true)
	private String ac_name;
	private Integer ac_pid;
	private int levelnum; //层级 0开始
	private Boolean isParent;  //1 父 0子
	public Integer getAc_id() {
		return ac_id;
	}
	public void setAc_id(Integer ac_id) {
		this.ac_id = ac_id;
	}
	public Integer getAc_coding() {
		return ac_coding;
	}
	public void setAc_coding(Integer ac_coding) {
		this.ac_coding = ac_coding;
	}
	public String getAc_name() {
		return ac_name;
	}
	public void setAc_name(String ac_name) {
		this.ac_name = ac_name;
	}
	public Integer getAc_pid() {
		return ac_pid;
	}
	public void setAc_pid(Integer ac_pid) {
		this.ac_pid = ac_pid;
	}
	public int getLevelnum() {
		return levelnum;
	}
	public void setLevelnum(int levelnum) {
		this.levelnum = levelnum;
	}
	public Boolean getIsParent() {
		return isParent;
	}
	public void setIsParent(Boolean isParent) {
		this.isParent = isParent;
	}
	
	
	
	
}
